<template>
	<view class="subRecord">
		<my-top :isline="true" title="意见反馈">
		</my-top>
		<view @click="backInfo(item,index)" v-if="list.length > 0" class="content" v-for="(item,index) in list">
			<view class="content-info">
				{{item.info}}
			</view>
			<view  class="content-type">
				<text style="color: #999999;font-size: 28rpx;">{{item.data}}</text>
				<view class="tag" :class="[item.type == 1 ? 'yes' : '',item.type == 2 ? 'no' : '',item.type == 3 ? 'see' : '',]">
					<text v-show="item.type == 1">已处理</text>
					<text v-show="item.type == 2">已查看</text>
					<text v-show="item.type == 3">未处理</text>
				</view>
			</view>
		</view>
		<view class="noBack" v-if="list.length == 0">
			<image style="width: 378rpx;height: 325rpx;" src="../../../../static/img/feedbackno.png" mode=""></image>
			<view>
				<view class="noBackTOP">没有记录~</view>
				<view class="noBackBottom">在这里可以查看历史反馈</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
				list: [
					{
							data: "2021-01-20",
							type: 1,
							info: "我是意见详情我是意见详情详情我是意见详情我是意见详情详情我是意见详情我是意见详情详情..."
						},
						{
							data: "2021-01-20",
							type: 2,
							info: "我是意见详情我是意见详情详情我是意见详情我是意见详情详情我是意见详情我是意见详情详情我是意见详情我是意见详情详情我是意见详情我是意见详情详情..."
						},
						{
							data: "2021-01-20",
							type: 3,
							info: "我是意见详情我是意见详情详情我是意见详情我是意见详情详情我是意见详情我是意见详情详情我是意见详情我是意见详情详情我是意见详情我是意见详情详情我是意见详情我是意见详情详情..."
						}
				]
			}
		},
		methods:{
			backInfo(item,index){
				uni.navigateTo({
					url:"./backInfo"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.noBack {
		position: absolute;
		top: 50%;
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		flex-direction: column;
		height: 481rpx;
		justify-content: center;
		align-items: center;
		margin-top: -240rpx;
		.noBackTOP{
			color: #C3CBD6;
			font-size: 32rpx;
			text-align: center;
			margin-top: 50rpx;
			margin-bottom: 8rpx;
		}
		.noBackBottom{
			color: #C3CBD6;
			font-size: 32rpx;
		}
	}

	.content-info {
		font-size: 28rpx;
		color: #999999;
		text-overflow: ellipsis;
		overflow: hidden;
		width: 100%;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		overflow: hidden;
	}

	.tag {
		width: 108rpx;
		font-size: 20rpx;
		color: #FFFFFF;
		text-align: center;
		line-height: 36rpx;
		height: 36rpx;
		border-radius: 30rpx;
	}

	.yes {
		background-color: #04A1FB;
	}

	.no {
		background-color: #FF5656;

	}

	.see {
		background-color: #6BDFA4;
	}

	.content {
		width: 100%;
		height: 171rpx;
		padding: 0 32rpx;
		background-color: #FFFFFF;
		margin: 24rpx 0;
		padding: 24rpx 24rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;

		.content-type {
			display: flex;
			justify-content: space-between;
		}
	}

	.subRecord {
		width: 100%;
		min-height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: #F8F8F8;
	}
</style>
